﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Macds.Core.Validation;

namespace Macds.Test.Core.Validation.Mocks
{
    public class JoinValidator : ValidatorBase<JoinModel>
    {
        public JoinValidator(JoinModel model) : base(model) { }

        protected override IEnumerable<IValidation> GetValidations(JoinModel obj)
        {
            var list = new List<IValidation>();
            list.Add(new StringEmptyValidation(obj.Firstname));
            list.Add(new StringEmptyValidation(obj.Lastname));
            list.Add(new StringEmptyValidation(obj.Password));

            return list;
        }
    }
}
